from flask import Flask, request, render_template, jsonify
from flask_sqlalchemy import SQLAlchemy


app = Flask(__name__)

@app.route('/', methods=['GET', 'POST'])
def hello_world():
    dict_show = {'code': 200, 'msg': 'hello world'}  # 定义字典用于数据展示
    return jsonify(dict_show)


if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0', port=5001)
# host='127.0.1.3',port=5555